#if !defined(AFX_READ3DSFILE_H__C5E61E85_0949_4808_9440_8AD284D32537__INCLUDED_)
#define AFX_READ3DSFILE_H__C5E61E85_0949_4808_9440_8AD284D32537__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Read3DsFile.h : header file
//
//#include "Vge_SceneDef.h"
//#include <setjmp.h>
//#include "Vge_3dsDataStructs.h"
#include "Vge_Read3DS.h"

/////////////////////////////////////////////////////////////////////////////
// CRead3DsFile document
namespace ccgis{

class AFX_EXT_CLASS CRead3DsFile : public CRead3DS
{
//	DECLARE_DYNCREATE(CRead3DsFile)
public:
	CRead3DsFile();           // protected constructor used by dynamic creation
	virtual ~CRead3DsFile();

// Attributes
public:
	// Each 3DS data-chunk starts with a 6 char header.
	// The first item in the header is a 2 char (short) id-number.
	// After that follows a int wich gives the size of
	// the data-chunk including the header. The size can be used
	// as an relative offset to the next chunk.
	BOOL Parse3DS(LPCTSTR filename); 
	CString szPathName;//the current file path
//	H3dsScene *Scene;
//	H3dsScene *Get3dsScene();

private:
	CFile InFile;
// Operations

protected:
	void dread(void *dest, UINT len);
	void dsetpos(LONG pos);
	DWORD dgetpos();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRead3DsFile)
//	public:
	//}}AFX_VIRTUAL

};

}

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_READ3DSFILE_H__C5E61E85_0949_4808_9440_8AD284D32537__INCLUDED_)
